package com.xinruke.hostels.dailymanage.interfaces.dto.inhotel;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @ClassName PersonalInHotelContinueDTO
 * @CreateDate 2019/7/3
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 个人续住请求
 */
@ApiModel("个人续住请求")
@Data
public class PersonalInHotelContinueDTO {
    @ApiModelProperty(value = "入住id", required = true)
    @NotBlank(message = "入住id不能为空")
    private String ruzhuId;

    @ApiModelProperty(value = "预抵时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "预抵时间不能为空")
    private Date ruzhushijian;

    @ApiModelProperty(value = "预离时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "预离时间不能为空")
    private Date likaishijian;
}
